package com.wisdomparking.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Scheduler {
	
	/**
	 * 每隔10秒同步一次数据
	 */
	@Scheduled(fixedRate = 10000)  
    public void testTasks() {
		RawDataMonitor rawDataMonitor = new RawDataMonitor();
		rawDataMonitor.dataListen();
    }
	
}
